home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / biblio / bibtex / utils / bibclean / xerrno.h < prev    next >
C/C++ Source or Header  |  1992-10-06  |  3KB  |  93 lines

  1. /* -*-C-*- xerrno.h */
  2. /**********************************************************************/
  3. /******************************* xerrno *******************************/
  4. /**********************************************************************/
  5.  
  6. /* $Id: xerrno.h,v 1.6 1992/10/08 01:42:01 beebe Exp beebe $ 
  7.  * $Log: xerrno.h,v $
  8.  * Revision 1.6  1992/10/08  01:42:01  beebe
  9.  * Update for C++.
  10.  *
  11.  * Revision 1.5  1992/07/10  18:05:28  beebe
  12.  * Add comment on #else.
  13.  *
  14.  * Revision 1.4  1992/03/10  14:13:53  beebe
  15.  * *** empty log message ***
  16.  *
  17.  * Revision 1.3  1992/03/06  14:56:35  beebe
  18.  * Complete two-month long development of version 3.0.114.  See
  19.  * 00revhst.txt for details.
  20.  *
  21.  * Revision 1.3  1992/03/06  14:56:35  beebe
  22.  * Complete two-month long development of version 3.0.114.  See
  23.  * 00revhst.txt for details.
  24.  *
  25.  * Revision 1.2  1992/02/29  19:42:20  beebe
  26.  * Update for version 3.0.114 [29-Feb-1992] following two-month
  27.  * major overhaul and compilation testing on numerous machines.
  28.  *
  29.  * Revision 1.1  1992/02/29  19:13:29  beebe
  30.  * Initial revision
  31.  *
  32.  * Revision 1.1  1992/02/29  19:13:29  beebe
  33.  * Initial revision
  34.  *
  35.  */
  36.  
  37. #ifndef XERRNO_H_DEFINED_
  38. #define XERRNO_H_DEFINED_
  39.  
  40. /***********************************************************************
  41. This file includes the system errno.h file, which often lacks
  42. definitions of errno and sys_nerr.
  43. ***********************************************************************/
  44.  
  45. #if HAVE_ERRNO_H
  46. #include <errno.h>
  47. #endif /* HAVE_ERRNO_H */
  48.  
  49. #if    !__cplusplus
  50. #if    ardent
  51. extern int sys_nerr;
  52. extern char *sys_errlist[];
  53. #endif /* ardent */
  54.  
  55. #if    OS_VAXVMS
  56. extern noshare int     errno;
  57. extern noshare int     sys_nerr;
  58. extern noshare char    *sys_errlist[];
  59. #endif  /* OS_VAXVMS */
  60.  
  61. #if    (OS_ATARI)
  62. extern int        errno;
  63. #endif /* OS_ATARI */
  64.  
  65. #if    OS_TOPS20
  66. #if    KCC_20
  67. extern int sys_nerr;
  68. extern char *sys_errlist[];
  69. #endif /* KCC_20 */
  70.  
  71. #if    PCC_20
  72. int sys_nerr = 0;
  73. char *sys_errlist[] = {"?"};
  74. #endif /* PCC_20 */
  75. #endif /* OS_TOPS20 */
  76.  
  77. #if _AIX||sun||(hp300 && __GNUC__)||__hpux||(ultrix && __LCC__)||UNIX_BSD
  78. extern int        errno;
  79. extern int        sys_nerr;
  80. extern char        *sys_errlist[];
  81. #endif /*_AIX||sun||(hp300 && __GNUC__)||__hpux||(ultrix && __LCC__)||UNIX_BSD*/
  82.  
  83. #if __sgi                /* Assume compilation with -ansiposix */
  84. #define sys_nerr    _sys_nerr    
  85. #define sys_errlist    _sys_errlist
  86. #endif /* __sgi */
  87.  
  88. #ifndef ENOSPC                /* some errno.h files don't have it */
  89. #define    ENOSPC        28        /* UNIX: No space left on device */
  90. #endif /* ENOSPC */
  91. #endif /* !__cplusplus */
  92. #endif /* XERRNO_H_DEFINED_ */
  93.